package Eyjafjalla.action;

import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.common.DamageAllEnemiesAction;
import com.megacrit.cardcrawl.cards.DamageInfo;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;

public class ShallowLoseAction extends AbstractGameAction {
    public ShallowLoseAction(int amount){
        this.amount = amount;
    }

    @Override
    public void update() {

        addToTop(new DamageAllEnemiesAction(AbstractDungeon.player, DamageInfo.createDamageMatrix(this.amount,true), DamageInfo.DamageType.HP_LOSS,AttackEffect.SMASH,true));

        this.isDone =  true;
    }
}
